<? session_start();?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><link href="../../Inc/Css.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>

<body>
<p>当前位置：模板管理&gt;模板页面</p>
<p>
  <?
 
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require RootDir."/"."inc/ActionFile.Class.php";

if($_SESSION["Login"][1]<>$SystemConest[2])
{
	die("你不是超级管理员,没有权限设置");
}
$retuestPath=$_REQUEST["path"];
if ($retuestPath=="" || !is_dir($SystemConest[0].$retuestPath)) die("路径不正确");
$myfile=new  ActionFile();

$FileArray=$myfile->listDirTree($SystemConest[0].$retuestPath,"");?>
<a href="editfilecode.php?action=add&dir=<? echo $retuestPath;?>/">添加新文件</a>

<?
 for($i=0;$i<count($FileArray);$i++)
  {
	  
  ?>
<div style="line-height:25px; height:25px; margin-left:20px;" align="left">
 ·<a href="editfilecode.php?file=<? echo $retuestPath."/".$FileArray[$i];?>&path=<? echo $retuestPath;?>"><? echo $FileArray[$i];?></a></td
></div>
  <?
	 
  }
  ?>

</body>
</html>